package com.tust.app.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.tust.app.dao.TRoleMapper;
import com.tust.app.domain.TRole;
import com.tust.app.service.TRoleService;
@Service
public class TRoleServiceImpl implements TRoleService{

    @Resource
    private TRoleMapper tRoleMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tRoleMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TRole record) {
        return tRoleMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(TRole record) {
        return tRoleMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(TRole record) {
        return tRoleMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(TRole record) {
        return tRoleMapper.insertSelective(record);
    }

    @Override
    public TRole selectByPrimaryKey(Integer id) {
        return tRoleMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TRole record) {
        return tRoleMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TRole record) {
        return tRoleMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<TRole> list) {
        return tRoleMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<TRole> list) {
        return tRoleMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<TRole> list) {
        return tRoleMapper.batchInsert(list);
    }

}
